home *** CD-ROM | disk | FTP | other *** search
/ MacGames Sampler / PHT MacGames Bundle.iso / MacSource Folder / Samples from the CD / Editors / emacs / Emacs-1.14b1 / About Emacs < prev    next >
Encoding:
Text File  |  1994-05-24  |  10.2 KB  |  226 lines  |  [TEXT/EMAC]

  1. This file accompanies an Apple Macintosh port of GNU Emacs 18.59.
  2. Here are some things to remember:
  3.  
  4. 1) This document describes differences between GNU Emacs on the
  5. Macintosh, and GNU Emacs on Unix.  It is not an introduction to Emacs.
  6. Type control-H t in Emacs to get an introduction.
  7.  
  8. 2) Emacs expects lines of text to end with '\n'.  The convention on
  9. the Macintosh is that lines of text end with '\r'.  To work around
  10. this, Emacs when reading files converts all '\r' characters to '\n'.
  11. Similarly, when writing files Emacs converts all '\n' characters to
  12. '\r'.  To accommodate this translation, and to allow Emacs to read
  13. other unconventionally formatted files, the following is done when
  14. reading any file:
  15.  
  16.     a)  If the file name ends with .elc or .bin, no translation is done.
  17.     b)  Otherwise, Emacs examines sequentially the first 200 bytes of
  18.         the file.  If a '\r' is found before a '\n', then the file will
  19.         be translated.  If a '\n' is found before a '\r', then the file
  20.         will not be translated.
  21.     c)  If neither a '\r' nor a '\n' is found, the file is translated.
  22.         This way, initially empty files will be translated and thus
  23.         conventional when later made non-empty.
  24.  
  25. The author of this port welcomes better ideas on heuristics that
  26. determine the need for translation.  See the final item below.
  27.  
  28. 3) The Modifier Key Nightmare: A fully functional Emacs implementation
  29. uses a modifier key called meta.  There is no key named meta on the
  30. Macintosh keyboard.  There is an option key, and many users of Emacs
  31. prefer to use the option key as a meta key.  Some users prefer not to
  32. change the function of any of the modifier keys at all.  Others prefer
  33. to use the larger command key as a meta key.  If any key is changed to
  34. function as meta, there remains the question, how can the function of
  35. that lost modifier key be refound when necessary.
  36.  
  37. The solution implemented now is that the functions of all five
  38. modifier keys, control, option, command, shift, and caps-lock, are
  39. configuable.  By default, the function of these keys in Emacs is just
  40. like that of any other Macintosh program.
  41.  
  42. Before you make any changes, you need to understand that the default
  43. configuration of the Macintosh operating system makes use of seven
  44. different combinations of modifier keys.  Each has a different effect
  45. on the keyboard, observable with the Key Caps desk accessory:
  46.  
  47.     shift,
  48.     control,
  49.     option,
  50.     caps-lock,
  51.     shift option,
  52.     command option, and
  53.     caps-lock option.
  54.  
  55. A completely functional Emacs requires six more combinations:
  56.  
  57.     shift control,
  58.     control option,
  59.     control shift option,
  60.     meta,
  61.     shift meta, and
  62.     control meta.
  63.  
  64. The combinations control option and control shift option are not
  65. required by American keyboards, but some foreign keyboards use them.
  66.  
  67. By default, this Emacs provides the seven standard combinations
  68. faithfully, plus the three additional combinations that do not require
  69. meta.  The three meta combinations are not provided.  You can change
  70. this and provide yourself with a meta key by using the “Change
  71. modifier keys” menu item in the Special menu.  The settings you choose
  72. are saved in a preferences file.  If you decide to let the option key
  73. function as meta, you need to redefine the option modifier.  One
  74. suggestion provided in the dialog box is to let command-option be
  75. option.  You could also leave option completely undefined, by chosing
  76. no modifier keys for it.
  77.  
  78. If you decide to provide yourself a meta key, note that in other
  79. implementations of Emacs the meta key sets the high bit of any
  80. character typed.  On the Macintosh, the meta key prefixes each
  81. character typed with an escape character.  The resulting behavior is
  82. slightly different at times.
  83.  
  84. The option-is-meta variable once provided for modifying keyboard
  85. behavior is now obsolete.
  86.  
  87. 4) The author's favorite Unix utilities have been ported in addition
  88. to Emacs.  These are ls, grep, ispell, and lpr.  Try them using dired,
  89. M-x grep, M-x ispell, M-x print-buffer, and M-x print-region.  You
  90. should uncomment the appropriate lines in •emacs to use ispell.  (The
  91. program sh is included so that wildcard characters used in arguments
  92. to ls, grep, and lpr can be expanded in the normal way.)  The programs
  93. chown, chmod, chgrp, mkdir, and rmdir are included for use with dired.
  94. The program wakeup is included for the display-time function.
  95.  
  96. 5) Slashes in filenames within the Finder are translated to colons
  97. when referenced in Emacs.  Colons in filenames within Emacs are
  98. translated to slashes when referenced by the Finder.  Similarly, a '.'
  99. prefix in filenames within Emacs is translated to a '•' when
  100. passed to the Finder, and a '•' prefix in filenames within the
  101. Finder are translated to a '.' in Emacs.  The dot-bullet translation
  102. is not quite as clean as the colon-slash translation, but it seems to
  103. be the solution that leaves the fewest problems.
  104.  
  105. 6) Emacs is System 7 dependent.  At one point Emacs required a 68020
  106. processor, but this is no longer true.
  107.  
  108. 7) Emacs has a 25 bit address space.  That's 32 megabytes.  If you
  109. have a Macintosh with more memory than that, Emacs will have to be
  110. deliberately loaded into low memory, through some kludge not yet
  111. developed.
  112.  
  113. 8) Keep your •emacs file in your home directory.  On the Macintosh the
  114. name •emacs is used instead of .emacs, because other programs have
  115. problems with filenames that begin with a period.  The character • is
  116. typed option-8.  If you use option as meta, you must type
  117. option-command-8.
  118.  
  119. 9) There should be a folder named “directories” in the same folder
  120. as Emacs.  The use of ~ in directory names is as follows:
  121.     a)  The directory “~emacs” is, by definition, the same one that the
  122.         Emacs program is in.
  123.     b)  If in the folder “directories” is an alias called “home”,
  124.         then ~/ is the folder targeted by that alias.  Otherwise ~/
  125.         is the same as ~emacs.
  126.     c)  For any other directory name ~dir, the folder understood
  127.         is the target of the alias “dir” in the “directories”
  128.         folder.
  129.  
  130. 10) For Emacs elisp hackers only: To start Emacs without loading the
  131. dumped elisp data, hold the shift key down when starting.  To rebuild
  132. the database, hold the option key down when starting.  It is a good
  133. idea to save a copy of Emacs before rebuilding its database, because
  134. Emacs saves its dumped data directly into its own resource fork.
  135.  
  136. 11) If Emacs suddenly quits on you, perhaps during garbage collection
  137. or byte-compiling, and perhaps with an error of ID 28, try using the
  138. "Set stack size..."  menu item to increase the stack size.  Sometimes
  139. the use of large windows on large screens with many lines of text
  140. requires larger amounts of stack space.
  141.  
  142. 12) Hackers may like working with the files in the directory lisp:mac.
  143. But remember this warning: If you start using the Macintosh Toolbox,
  144. you can easily, and will most likely, crash Emacs, and the entire
  145. machine, losing all changes in any open documents in Emacs and other
  146. programs.
  147.  
  148. 13) The commands in the Edit menu do the following:
  149.  
  150.     Undo calls the elisp function undo.  Unlike what is typical
  151.     on the Macintosh, successive undo's will undo more and more
  152.     of what has been changed in the buffer.  If you move the
  153.     cursor after successive undo's, the undo command will then
  154.     begin to successively redo what has been undone.
  155.     
  156.     Cut copies the region of the current buffer to the buffer
  157.     named *clipboard*, and also copies that region to the
  158.     System Scrap.  Then kill-region, more familiarly known as
  159.     control-W, is called.
  160.     
  161.     Copy is just like Cut, except that copy-region-as-kill,
  162.     more familiarly know as ESC-W, is called instead of
  163.     kill-region.
  164.     
  165.     Paste insures that the buffer named *clipboard* contains
  166.     the contents of the Macintosh System Scrap, then inserts
  167.     the contents of the buffer *clipboard* into the current
  168.     buffer.  It does not call the elisp function yank, known
  169.     also as ESC-Y.
  170.     
  171.     Clear calls delete-region, and does nothing with the
  172.     Macintosh System Scrap.
  173.  
  174. These definitions are in lisp:mac:menu-install.el, and can be changed.
  175. The clipboard can be examined in the buffer named *clipboard*.  By
  176. default on extended keyboards, the keys labeled undo, cut, copy, and
  177. paste do the expected things.
  178.  
  179. 14) Emacs can only use fixed-width fonts.
  180.  
  181. 15) Not all the elisp files included are immediately useful.  The
  182. files dealing with mail are not working, for example.  They are
  183. included for others who have a mail program and might try to make them
  184. work.
  185.  
  186. 16) Emacs handles correctly pathnames with aliases used as
  187. directories.  The pathname /HardDrive/Folder/AliasedFolder/File works.
  188. But pathnames with the final filename an alias work differently.  If
  189. /HardDrive/Folder/Alias is an alias to say /HardDrive/File, then you
  190. can open and edit that file using the alias.  When you save it,
  191. however, Emacs will first copy /HardDrive/File to
  192. /HardDrive/Folder/Alias~, then create rewrite /HardDrive/File.  This
  193. may or may not be what you want.  This is similar to what Emacs does
  194. under Unix with symbolic links.
  195.  
  196. 17) In dired, use the command 'O', which runs chown, to change the
  197. creator of a file.  Use the command 'G', which runs chgrp, to change
  198. the type of a file.  Use the command 'M', which runs chmod, to set the
  199. mode bits of a file.  Only the write permission of files is affected;
  200. the file is effectively locked or unlocked.
  201.  
  202. 18) In TeX mode, C-c C-b (TeX-buffer), and C-c C-r (TeX-region) have
  203. been rewritten to send the appropriate Apple events to Textures.  The
  204. version of Textures required is 1.6.2.  You will need to edit the
  205. •emacs file to load the appropriate lisp code.
  206.  
  207. 19) Mouse support is at the moment limited to this: Clicking sets
  208. point, and shift-clicking sets mark.
  209.  
  210. 20) You can change the fonts available in the Font menu item by
  211. setting the variable fixed-width-fonts in your •emacs file.  The
  212. default value is ("Courier" "Monaco").
  213.  
  214. 21) You can change the definitions of the keys on the numeric keypad,
  215. the keys F1-F15, the cursor keys, and the keys labeled help, home,
  216. page up, del, end, and page down.  See the file
  217. lisp/term/Macintosh-win.el.
  218.  
  219. 22) The principal ftp site for the Macintosh port of Emacs is
  220. ftp.cs.cornell.edu, directory pub/parmet.  The sources are on
  221. this site.
  222.  
  223. 23) This port is now fairly well tested.  Still, save often.  Send bug
  224. reports, suggestions, and comments to the author of the port at
  225. parmet@cs.cornell.edu.
  226.